import Vue from 'vue'
import App from './App'
import store from './store'
import MinCache from'./common/util/MinCache.js'
import tip from'./common/util/tip.js'
import share from './common/util/share.js'
import sensorsSdk from './common/util/sensors.js'

// 埋点 挂在wx上全局调用
wx.sensors = sensorsSdk
// wx.sensors.init()

// 注册缓存器
Vue.use(MinCache,{timeout: 3600*240})

// tip
Vue.prototype.$tip=tip;
Vue.prototype.$bus = new Vue()
// 全局设置分享
Vue.mixin(share)


// store
Vue.prototype.$store=store;

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	MinCache,
    ...App
})
app.$mount();

